src=$(adapt tool get http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.bz2)

cd $src
# everything here would be in adapt, but I do not want to complicate now
./configure --prefix=$(adapt query sys/prefix)
make -j $(adapt query sys/cpunum)
make install

#adapt env prepend PATH ~/adapt/soft/bin
#adapt env prepend LD_LIBRARY_PATH ~/adapt/soft/lib
